/**
 * 
 */
package me.android.YPVN;

import java.util.Timer;
import java.util.TimerTask;
import me.android.YPVN.R;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;

/**
 * @author chuonglv
 *
 */
public class SplashScreen extends Activity {
	
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.splash_screen);
		
		Timer timer = new Timer();
		timer.schedule(new TimerTask(){
			@Override
			public void run(){
				Intent intent = new Intent();
				intent.setClass(getApplicationContext(), MainActivity.class);
				startActivity(intent);
				
				finish();
			}
			
		},getResources().getInteger(R.integer.splashscreen_duration));
		
	}

}
